<?php
namespace app\demo\middleware;

class Check
{
    public function handle($request,\Closure $next){

        dump("Check中间件");

        return $next($request);
    }

    /**
     * 中间件结束调度
     * @param \think\Response $response
     */
    public function end(\think\Response $response){

    }
}